//
//  RNOLAuthPayModel.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/25.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLAuthPayModel.h"

@implementation RNOLAuthPayModel

+ (NSMutableArray<RNOLAuthPayModel*>*)getModelDataSource{
    NSArray *names = @[@"真实姓名",@"身份证号",@"银行卡类型",@"银行卡号",@"手机号",@"验证码"];
    NSArray *placeholders = @[@"刘**",@"6231 **** ****2939",@"请选择您的银行卡开户银行",@"请输入您的银行卡号",@"请输入银行预留手机号码",@"请输入验证码"];
    NSMutableArray *dataArray = [NSMutableArray array];
    for (NSInteger i = 0; i < names.count; i++) {
        RNOLAuthPayModel *model = [[RNOLAuthPayModel alloc] init];
        model.name = names[i];
        if (i < 3) {
            model.isEditable = NO;
            model.content = placeholders[i];
        }else{
            model.isEditable = YES;
            model.placeholder = placeholders[i];
        }
        
        if (i == names.count -1) {
            model.isNeedButton = YES;
        }else{
            model.isNeedButton = NO;
        }
        [dataArray addObject: model];
    }
    return dataArray;
}



@end
